package com.yango.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Li.Ding.yin
 * @create 2021年08月04日19:29-星期三
 * @role 订单微服务启动类
 */
@SpringBootApplication
@MapperScan("com.yango.order.mapper")
@ComponentScan(basePackages = {"com.yango"})
@EnableDiscoveryClient//开启服务注册
@EnableFeignClients//开启服务发现
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }
}
